<template>
  <div>详情</div>
  <p>{{ $route.params.id }}</p>
</template>

<script lang="ts" setup>
const route = useRoute();

console.log(route.params.id);
</script>

<style scoped></style>
